﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息发布广场</title>
<script language="javascript" type="text/javascript">
    function getdate()
    {
         Date d=new Date();
         var year = d.getFullYear();
         var month=d.getMonth();
         var day = d.getDay();
         var showdate= document.getElementById("date");
         showdate.innerHTML=year+ "年" +month+"月"+day+"日" ;
    }
</script>
<link rel="stylesheet" type="text/css" href="wuliu.css">
</head>

<body >
    <form id="form1" runat="server">
<div id="container">
	<div id="top">
    	<div id="header"></div>
        <div id="menu">
        	<ul>
            	<li><a href="index.aspx">首页</a></li>
                <li><a href="user.aspx">个人中心</a></li>
               
                <li><a href="book.aspx">图书信息</a></li>
                <li><a href="elc.aspx">家电信息</a></li>
                <li><a href="help.aspx">求助中心</a></li>
                <li><a href="teach.aspx">服务社区</a></li>
                <li><a href="user.aspx">资源下载</a></li>
                <li><a href="user.aspx">站内交流</a></li>
                 <li><a href="admindenglu.aspx">管理员登陆</a></li>
                <li>当前日期：<asp:Label ID="Label2" runat="server" ></asp:Label></b></li>
            </ul>
        </div>
    </div>	
    <div id="content">
    	<div id="left_block">
        	<div id="login">
                    <br />
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户：<asp:TextBox id="TextBox1"  runat="server" width="100"></asp:TextBox><br /><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label id="Label1" runat="server" Text="密码："></asp:Label><asp:TextBox id="TextBox2"  runat="server" width="100"></asp:TextBox>
						
						<br/>
						<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">[忘记密码]</a>&nbsp;&nbsp;&nbsp;<a href="zhuce.aspx">[注册]</a>
                        <br />
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="BT_regedit" 
                        runat="server" Text="注册" onclick="BT_regedit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button 
                        ID="BT_logo" runat="server" Text="登陆" onclick="BT_logo_Click" />
			  </div>
            <div id="news" > 
              <div id="news_up_block"><img src="picture/png-0003.png" alt="news" width="25" height="25" />公告 </div>
              <div id="pic">
             
 <marquee direction="up" width="100%" height="150"  scrollamount="2" id=info onmouseover=info.stop() onmouseout=info.start() ><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;欢迎您进入信息发布广</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;场，在这里您可以得到你所</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;想要的信息，有任何问题请</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您随时与我们联系，信息发</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;布广场竭诚为您服务！</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系方式：</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电话：13852691451</p>
                    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QQ：87458785 </p></marquee></div>
              </div>
            <div id="news">
              <div id="news_up_block"><img src="picture/png-0237.png" alt="news" width="25" height="25" /> 友情链接 </div>
               <div id="pic"><a href="http://www.baidu.com"><img src="picture/baidu_logo.gif" alt="1" width="244" height="77" border="0" /></a></div>
                <div  align="center" ><a href="http://"><img src="picture/az-joyo_logo.gif" alt="1" width="160" height="55" border="0" /></a></div>
                <div align="center" ><a href="http://"><img src="picture/logo_home.gif" alt="1" width="170" height="65" border="0" align="center" /></a></div>
            </div>
        </div>
        <div id="right_block">
       	  <div id="right_boxes">
       	  <div id="news_up_block"><img src="picture/png-0667.png" alt="news" width="25" height="25" /> 最新发布 </div>
            <div>
            	<div id="pic"><img src="picture/book.jpg" alt="1" width="176" height="230" /></div>
                <div id="right_content"></div>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" DataKeyNames="book_id" 
                            DataSourceID="SqlDataSource1" PageSize="7" 
                            Width="452px" Height="125px" 
                            >
                            <Columns>
                                <asp:BoundField DataField="book_id" HeaderText="产品ID" ReadOnly="True" 
                                    SortExpression="book_id" />
                                <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
                                    SortExpression="user_pbmsg" />
                                <asp:BoundField DataField="Column1" HeaderText="发布日期" ReadOnly="True" 
                                    SortExpression="Column1" />
                                <asp:BoundField DataField="user_name" HeaderText="发布者" 
                                    SortExpression="user_name" />
                            </Columns>
                            <PagerTemplate>
                               
                                    <asp:LinkButton ID="LinkButton1" runat="server" Font-Size="Large" 
                                        OnClick="LinkButton1_Click">more...</asp:LinkButton>
                    
               
                            </PagerTemplate>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:infoConnectionString %>" SelectCommand="SELECT [book_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infobook] ,[b_user]
where b_infobook.user_id = b_user.user_id"></asp:SqlDataSource>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
          </div>
            <div id="right_boxes"><div id="news_up_block"><img src="picture/png-0583.png" alt="news" width="25" height="25" /> 最新发布 </div>
            <div>
            	<div id="pic"><img src="picture/elc.jpg" alt="1" width="176" height="230" /></div>
                <div id="right_content">
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:infoConnectionString %>" SelectCommand="SELECT [elc_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infoelc] ,[b_user]
where b_infoelc.user_id = b_user.user_id"></asp:SqlDataSource>
                </div>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="elc_id" DataSourceID="SqlDataSource2" PageSize="7" Width="447px" AllowPaging="True">
                            <Columns>
                                <asp:BoundField DataField="elc_id" HeaderText="产品ID" 
            ReadOnly="True" SortExpression="elc_id" />
                                <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
            SortExpression="user_pbmsg" />
                                <asp:BoundField DataField="Column1" HeaderText="发布日期" 
            ReadOnly="True" SortExpression="Column1" />
                                <asp:BoundField DataField="user_name" HeaderText="发布者" 
            SortExpression="user_name" />
                            </Columns>
                            <PagerTemplate>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton2" runat="server" Font-Size = "Large" OnClick = "LinkButton2_Click" >more...</asp:LinkButton>
                            </PagerTemplate>
                        </asp:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            </div>
            <div id="right_boxes"><div id="news_up_block"><img src="picture/png-0806.png" alt="news" width="25" height="25" /> 最新发布 </div>
            <div>
            	<div id="pic"><img src="picture/service.jpg" alt="1" width="176" height="230" /></div>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="GridView3" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" DataKeyNames="teach_id" 
                            DataSourceID="SqlDataSource3" PageSize="7" 
                            Width="448px">
                            <Columns>
                                <asp:BoundField DataField="teach_id" HeaderText="产品ID" ReadOnly="True" 
                                    SortExpression="teach_id" />
                                <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
                                    SortExpression="user_pbmsg" />
                                <asp:BoundField DataField="Column1" HeaderText="发布日期" ReadOnly="True" 
                                    SortExpression="Column1" />
                                <asp:BoundField DataField="user_name" HeaderText="发布者" 
                                    SortExpression="user_name" />
                            </Columns>
                            <PagerTemplate>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton3" runat="server" Font-Size = "Large"  OnClick = "LinkButton3_Click" >more...</asp:LinkButton>
                            </PagerTemplate>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:infoConnectionString %>" SelectCommand="SELECT [teach_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infoteach] ,[b_user]
where b_infoteach.user_id = b_user.user_id"></asp:SqlDataSource>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
          </div>
            <div id="right_boxes"><div id="news_up_block"><img src="picture/png-1103.png" alt="news" width="25" height="25" /> 最新发布 </div>
            <div>
            	<div id="pic"><img src="picture/help.jpg" alt="1" width="176" height="230" /></div>
                <div id="right_content"></div>
                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="GridView4" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" DataKeyNames="help_id" 
                            DataSourceID="SqlDataSource4" PageSize="7" 
                            Width="448px">
                            <Columns>
                                <asp:BoundField DataField="help_id" HeaderText="产品ID" ReadOnly="True" 
                                    SortExpression="help_id" />
                                <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
                                    SortExpression="user_pbmsg" />
                                <asp:BoundField DataField="Column1" HeaderText="发布日期" ReadOnly="True" 
                                    SortExpression="Column1" />
                                <asp:BoundField DataField="user_name" HeaderText="发布者" 
                                    SortExpression="user_name" />
                            </Columns>
                            <PagerTemplate>
                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                               
                                    <asp:LinkButton ID="LinkButton4" runat="server" Font-Size="Large" 
                                        OnClick="LinkButton4_Click">more...</asp:LinkButton>
                                
                            </PagerTemplate>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:infoConnectionString %>" SelectCommand="SELECT [help_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infohelp] ,[b_user]
where b_infohelp.user_id = b_user.user_id"></asp:SqlDataSource>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            </div>
        </div>
    </div>
    <div id="footer">
      版权所有 Copyright ©长江大学计算机科学学院    All Rights Reservedog.chinaunix.net/u3/93893/">联系站长</a>|<a href="#">网站地图</a>
    </div>
</div>
    </form>
</body>
</html>

